/**
 * Created by Tinyang on 2016/8/2.
 */
import {Component} from "@angular/core";
import {CategoryService} from "./service/category.service";
import {Category} from "./entity/category";

@Component({
    selector: "my-leftbody",
    templateUrl: "./app/leftBody.html",
    providers:[CategoryService]
})
export class LeftBodyComponent {
    private categoryService:CategoryService;
    private categoryList:Category[];
    constructor(categoryService:CategoryService) {
        this.categoryList = categoryService.getAll();
    }
    }